#ifndef FORMVEHILCEINFO_H
#define FORMVEHILCEINFO_H
#include <QWidget>
#include <QLabel>
#include "protocol.h"
namespace Ui {
    class FormVehilceInfo;
}

class FormVehicleInfo : public QWidget
{
    Q_OBJECT

public:
    explicit FormVehicleInfo(QWidget *parent = 0);
    ~FormVehicleInfo();

public:
    QString translateVehType(int nVehType);
    void setDesc(const QString &sDesc);
    void setAutoVehType(const VEHICLE &vehicle);
    void updateVehTypeImg(int nVehType);
    void clearVehInfo();
    void showMiniMode();

    __int64 getDetectTime()
    {
        return m_vehicle.tTransit;
    }
private:
    Ui::FormVehilceInfo *ui;

    QLabel *m_plblDesc;
    QLabel *m_plblAutoVehType;
    QLabel *m_plblDetectTime;
    QLabel *m_plblAxleNum;
    QLabel *m_plblAxleType;
    QLabel *m_plblAutoimg;
    VEHICLE m_vehicle;

    QString currentvehtype;   //记录胶条当前检测车型


};
int translateVehType(const VEHICLE &veh);

#endif // FORMVEHILCEINFO_H
